package com.cjm.one.custom.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.model.custom.entity.CustomAddress;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 29289
* @description 针对表【custom_address(用户地址表)】的数据库操作Service
* @createDate 2024-09-05 16:25:23
*/
public interface CustomAddressService extends IService<CustomAddress> {

    Page<CustomAddress> pageList(Integer current, Integer size, Long id);

    Boolean add(CustomAddress customAddress);

    Boolean deleteByIdAndCustomId(Long id, Long customId);

    CustomAddress getAddressInfo(Long id, Long customId);

    CustomAddress getDefaultById(Long customId);
}
